<?php $this->start('admin_menu') ?>
<?php echo $this->element('admin_menu', array('str_item' => 'settings')) ?>
<?php $this->end(); ?>

<div class="sliders index">
    <h2><?php echo __('Sliders'); ?></h2>
    <?php
    echo $this->Session->flash();
    echo $this->Session->flash('good');
    echo $this->Session->flash('bad');
    ?>
    <table cellpadding="0" cellspacing="0" class="table-listing">
        <tr>
            <th><?php echo $this->Paginator->sort('id'); ?></th>
            <th><?php echo $this->Paginator->sort('name'); ?></th>
            <th><?php echo $this->Paginator->sort('order'); ?></th>
            <th><?php echo $this->Paginator->sort('slide'); ?></th>
            <th><?php echo $this->Paginator->sort('width'); ?></th>
            <th><?php echo $this->Paginator->sort('height'); ?></th>
            <th><?php echo $this->Paginator->sort('status'); ?></th>
            <th class="actions"><?php echo __('Actions'); ?></th>
        </tr>
        <?php foreach ($sliders as $slider): ?>
            <tr>
                <td><?php echo h($slider['Slider']['id']); ?>&nbsp;</td>
                <td><?php echo h($slider['Slider']['name']); ?>&nbsp;</td>
                <td><?php echo h($slider['Slider']['order']); ?>&nbsp;</td>
                <td><?php echo h($slider['Slider']['slide']); ?>&nbsp;</td>
                <td><?php echo h($slider['Slider']['width']); ?>&nbsp;</td>
                <td><?php echo h($slider['Slider']['height']); ?>&nbsp;</td>
                <td><?php echo h($slider['Slider']['status']); ?>&nbsp;</td>
                <td class="actions action-cm3">
                    <?php echo $this->Html->link(__('View'), array('admin' => true, 'action' => 'view', $slider['Slider']['id']), array('class' => 'act-lk show-link')); ?>
                    <?php echo $this->Html->link(__('Edit'), array('admin' => true, 'action' => 'edit', $slider['Slider']['id']), array('class' => 'act-lk edit-link')); ?>
                    <?php echo $this->Form->postLink(__('Delete'), array('admin' => true, 'action' => 'delete', $slider['Slider']['id']), array('class' => 'act-lk del-link'), __('Are you sure you want to delete # %s?', $slider['Slider']['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
    <p>
        <?php
        echo $this->Paginator->counter(array(
            'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
        ));
        ?>	</p>

    <div class="paging">
        <?php
        echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
    </div>
</div>

<div class='actionct'>
    <span class='btn-act'><span><?php echo $this->Html->link(__('New Slider'), array('action' => 'add')); ?></span></span>
</div>
